package org.ala.tree.bat;

/**
 *
 * @author ala
 * @date 2025年5月22日
 */
public class Test {

	public static void main(String[] args) {
		BATree<Integer, Integer> tree = new BATree<Integer, Integer>(4, Integer.MAX_VALUE, (i1, i2) -> i1 - i2);
		
		for (int i = 0 ; i < 10 ; i++) {
			tree.add(i, i);
		}
		System.out.println(tree);
		
		System.out.println("删除:" + 0);
		tree.remove(0);
		System.out.println(tree);
		
		System.out.println("删除:" + 0);
		tree.remove(0);
		System.out.println(tree);
		
		System.out.println("删除:" + 6);
		tree.remove(6);
		System.out.println(tree);
	}

}
